package com.loong.user.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-10-16 11:07
 */
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class manageDepartmentParam {
    @NotNull(groups = {CommonUpdate.class},message = "id不能为空")
    private Long id;
    /**
     * 部门名字
     */
    @NotBlank(groups = {CommonInsert.class},message = "部门名字不能为空")
    private String name;

    /**
     * 父节点id
     */
    @NotNull(groups = {CommonInsert.class},message = "父节点id不能为空")
    private Long parentId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    @NotNull(groups = {CommonInsert.class},message = "状态不能为空")
    private Integer status;

    /**
     * 公司id
     */
    @NotNull(groups = {CommonInsert.class},message = "所属公司不能为空")
    private Long companyId;
}
